<template>
    <div class="test">
        <product-title></product-title>
        <div class="bill common-box-body">
            <Form>
                <Row>
                    <Col>
                    <FormItem>
                        <Button type="primary" @click="active('copy_parter_data')">copy_parter_data</Button>
                        <Button type="warning" @click="active('copy_pro_cate_data')">copy_pro_cate_data</Button>
                        <Button type="success" @click="active('copy_pro_data')">copy_pro_data</Button>
                        <Button type="error" @click="active('copy_radio_data')">copy_radio_data</Button>

                        <Button type="primary" @click="active('copy_fee_data')">copy_fee_data</Button>
                        <Button type="warning" @click="active('copy_org_data')">copy_org_data</Button>
                        <Button type="success" @click="active('copy_rank_data')">copy_rank_data</Button>
                        <Button type="error" @click="active('copy_emp_data')">copy_emp_data</Button>

                        <Button type="success" @click="active('copy_emp_rec_data')">copy_emp_rec_data</Button>
                        <Button type="error" @click="active('copy_policy_data')">copy_policy_data</Button>
                    </FormItem>
                    </Col>
                </Row>
            </Form>
        </div>
    </div>
</template>

<script>
    import productTitle from '../../components/productTitle'
    import {
        test,
        copy_parter_data,
        copy_pro_cate_data,
        copy_pro_data,
        copy_radio_data,

        copy_fee_data,
        copy_org_data,
        copy_rank_data,
        copy_emp_data,

        copy_emp_rec_data,
        copy_policy_data,
    } from '../../api/test'
    import util from '../../libs/util.js';
    export default {
        data() {
            return {

            }
        },
        components: {
            productTitle
        },
        computed: {
            slidetoggle() {
                return this.$store.state.sildeshow
            },
        },
        created() {
            // this.getList()
        },
        methods: {
            active(data) {
                var _this = this;
                var url = BASE_URL + '/insured/' + data;
                util.ajax.post(url, {})
                    .then(function (res) {
                        console.log(res, '>....')
                    })
                    .catch((res) => {
                        console.log(res)
                    })
            },
        }
    }
</script>